package com.hyt.it.ogt.kq.service.govData.model.entity.kz;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hyt.common.apiInfor.DataType;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 考试-试卷
 * </p>
 *
 * @author 刘恒活
 * @since 2020-05-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("kw_exam_paper")
@ApiModel(value="考试试卷", description="考试试卷")
public class ExamPaper extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试ID")
    private String examId;

    @ApiModelProperty(value = "题库试卷ID")
    private String paperId;

    @ApiModelProperty(value = "试卷名称")
    private String paperName;

    @ApiModelProperty(value = "试卷版本号")
    private String paperVersion;

    @ApiModelProperty(value = "试卷创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private LocalDateTime paperDate;

    @ApiModelProperty(value = "试卷版的新本号")
    @TableField(exist = false)
    private String newPaperVersion;

    @ApiModelProperty(value = "试卷总分数")
    private BigDecimal paperScore;

    @ApiModelProperty(value = "试卷时长")
    private Long paperTimeLength;

    @ApiModelProperty(value = "试卷来源，0：题库；1：导入")
    @TableField(exist = false)
    private String paperSources;

    @ApiModelProperty(value = "试卷授权码")
    @TableField(exist = false)
    private String paperAuthCode;

    @ApiModelProperty(value = "试卷授权码导入")
    @TableField(exist = false)
    private String paperAuthCodeTime;

    @ApiModelProperty(value = "试卷模式，是试卷包，single是单体试卷", dataType= DataType.STRING)
    private String paperMode;
}
